import request from '@/router/axios';


export const getDetail = (id) => {
  return request({
    url: '/cms/cmsArticle/detail',
    method: 'post',
    meta: {
      isSerialize: true,
    },
    data: {
      id,
    }
  })
}

export const sellerhomeData = () => {
  return request({
    url: '/base/sellerStore/storeInfo',
    method: 'post',
    params: {
    }
  })
}

export const storeOrder = () => {
  return request({
    url: '/order/orderFormIndex/indexStatisticsStoreOrder',
    method: 'post',
    params: {
    }
  })
}
export const storeEvaluate = (storeId) => {
  return request({
    url: '/evaluate/index/indexStatisticsStoreEvaluate',
    method: 'post',
	meta: {
	  isSerialize: true,
	},
    data: {
		storeId
    }
  })
}
export const storeCms = () => {
  return request({
    url: '/cms/index/indexStatisticsStoreCms',
    method: 'post',
    params: {
    }
  })
}
// 获取商城公告
export const storeAccount = () => {
  return request({
    url: '/account/userAccountIndex/indexStatisticsStoreAccount',
    method: 'post',
    params: {
    }
  })
}
